package edu.ncsu.csc.itrust.action;

import edu.ncsu.csc.itrust.dao.DAOFactory;
import edu.ncsu.csc.itrust.datagenerators.TestDataGenerator;
import edu.ncsu.csc.itrust.exception.DBException;
import edu.ncsu.csc.itrust.testutils.TestDAOFactory;
import junit.framework.TestCase;

public class ViewLabTechProceduresActionTest extends TestCase {
	private TestDataGenerator gen = new TestDataGenerator();
	private DAOFactory factory = TestDAOFactory.getTestInstance();
	private long loggedInMID = 5000000100L;
	private ViewLabTechProceduresAction viewAction = new ViewLabTechProceduresAction(factory, loggedInMID);
	
	@Override
	protected void setUp() throws Exception {
		gen.clearAllTables();
		gen.standardData();
	}
	
	public void testAllMethods() throws DBException {
		long procedureID = 1;
		String result = "dead";
		viewAction.getInTransit();
		viewAction.getReceived();
		viewAction.reportResult(procedureID, result);
		viewAction.updateReceived(procedureID);
		
		
	}

}
